BackgroundRemover

Produces foreground masks for images that should have their background removed.

Parameters

Config

configuration type used by the remover implementation.

Functions

Link copied to clipboard
abstract fun EditorScope.initialize()

Prepares the remover for use.

Link copied to clipboard
abstract suspend fun EditorScope.processImage(bitmap: Bitmap): BackgroundRemovalMask

Processes bitmap and returns a mask where foreground pixels should remain visible.